var sys = require('sys');

exports.create = function() {
  return new PlayerPool();
}

function PlayerPool() {
  this.max = 1000;
  this.players = {};
  
  sys.log("PlayerPool:construct Creating new playerpool");
  
  this.contains = function(id) {
    return (this.players[id]);
  }
  
  this.add = function(player) {
    this.players[player.id] = player;
  }
  
  this.remove = function(id) {
    delete this.players[id];
  }
  
  this.contains = function(id) {
    return (this.players[id]);
  }
}